//
//  NSLayoutConstraint+SHLayout.m
//  psd
//
//  Created by Mr.Xr on 2017/8/3.
//  Copyright © 2017年 Mr.Xr. All rights reserved.
//

#import "NSLayoutConstraint+SHLayout.h"
//static NSString *scaleKey = @"scaleKey";

@implementation NSLayoutConstraint (SHLayout)
@dynamic scale;

-(void)setScale:(BOOL)scale{
//    objc_setAssociatedObject(self, &scaleKey, scaleKey, OBJC_ASSOCIATION_ASSIGN);
    if(scale){
        self.constant *= SCALE_6S_W;
    }
}

//-(BOOL)scale{
//    return [objc_getAssociatedObject(self, &scaleKey) boolValue];
//}


@end
